package com.lxw.nonghe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lxw.nonghe.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author lxw
 * @since 2025-04-17
 */
public interface UserService extends IService<User> {

    Page<User> getUserPage(int current, int size, String username);

    User getUserByUsername(String username);

    Page<User> queryUsers(User queryUser, int current, int size);

    boolean removeBatchByIds(List<Integer> ids);

    // 修改参数类型为Integer以匹配User实体中的userId类型
    List<String> getUserPermissions(Integer userId);

    long getUserCount();

    int[] getRegisterTimes();
}
